#pragma once

#include "Env.h"

Env::Env(string mFile, string dFile, string iconLoc, string n, string a, D3DXMATRIX tMatrix)
:Object(mFile, dFile, iconLoc, n, a, tMatrix) {}

Env::Env(string mFile, string dFile, string iconLoc, string n, string a, D3DXMATRIX tMatrix, 
		 int val)
:Object(mFile, dFile, iconLoc, n, a, tMatrix), value(val) {}

void Env::setValue(int val) {
	value = val;
}

int Env::getValue(void) {
	return value;
}

void Env::saveInfoToFile(ofstream &out) {
	out << modelFile << "\n";
	out << dataFile << "\n";
	out << iconLocation << "\n";
	out << name << "\n";
	out << alignment << "\n";
	out << getPosition().x << " ";
	out << getPosition().y << " ";
	out << getPosition().z << "\n";
	out << getScale().x << " ";
	out << getScale().y << " ";
	out << getScale().z << "\n";
	out << getRotation().x << " ";
	out << getRotation().y << " ";
	out << getRotation().z << "\n";

	out << value << "\n";
}